import re

s = "    token: '9922fea9157d09cbfc1eb70d3609062b',"

if re.match("    token: ", s):
    print("matched")
else:
    print("not matched")